package com.example.musicwebcon.service.serviceInterface;

import com.example.musicwebcon.model.dto.favorDTO;
import com.example.musicwebcon.model.favorSong;

public interface IfavorService {
    /**
     * 插入favorSong
     *
     * @param favorSong
     * @return
     */
    favorSong add(favorDTO favorSong);

    /**
     * 查询favorSong
     * @param musicId
     * @return
     */
    favorSong getMusicId(String musicId);

    /**
     * 查询所有
     * @return
     */
    Iterable<favorSong> getALl();
    /**
     * 修改歌曲信息
     * @param favorSong
     * @return
     */
    favorSong edit(favorDTO favorSong);

    /**
     * 删除歌曲
     *
     * @param musicId
     */
    void deleteMusicId(String musicId);
}
